<%@ page import="service.serviceimpl.ServiceImpl" %><%--
  Created by IntelliJ IDEA.
  User: Root404
  Date: 2023/5/12
  Time: 11:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    int id = Integer.parseInt(request.getParameter("id"));
    ServiceImpl service = new ServiceImpl();
    int i = service.executeUpdate("delete from t163 where id=?", id);
    if(i>0){
        request.getRequestDispatcher("index.jsp?isdelete=t").forward(request,response);
    }else{
        response.sendRedirect("index.jsp");
    }
%>
</body>
</html>
